<template>
	<view class="hun" style="background-color: #EEEEEE;position: relative;height: 100%;">
		<view class="inv-h-w">

			<view :class="['inv-h',Inv==5?'inv-h-se':'']" @click="yj_searchForm(Inv=5)">详情</view>
			<view :class="['inv-h',Inv==0?'inv-h-se':'']" @click="yj_searchForm(Inv=0)">闭合申请单</view>
			<view v-if="Fdata.Checkstatus>1" :class="['inv-h',Inv==1?'inv-h-se':'']" @click="yj_searchForm(Inv=1)">一级审核</view>
			<view v-if="Fdata.Checkstatus>2" :class="['inv-h',Inv==2?'inv-h-se':'']" @click="yj_searchForm(Inv=2)">二级审核</view>
			<view v-if="Fdata.Checkstatus>3" :class="['inv-h',Inv==3?'inv-h-se':'']" @click="yj_searchForm(Inv=3)">三级审核</view>
		</view>

		<view style="position: absolute;width: 100%;margin-top: 100upx">
			<view class="formPage" v-if="Inv==5">
				<form>
					<view class="formPage-titel">
						<view>
							基本信息
						</view>
					</view>
					<cLabel title='标段名称' v-model='totalData.yjQmpMsGroutinginfo.fCompanyname' :disabled="true"
						:dataText='totalData.yjQmpMsGroutinginfo.fCompanyname' must="no" rightIcon='' mode='text' />
					<cLabel title='梁场名称' v-model='totalData.yjQmpMsGroutinginfo.fBeamyardname' :disabled="true"
						:dataText='totalData.yjQmpMsGroutinginfo.fBeamyardname' rightIcon='' must="no" mode='text' />


					<cLabel title='梁名称' must="no" v-model='totalData.yjQmpMsGroutinginfo.fBeamname' :disabled="true"
						:dataText='totalData.yjQmpMsGroutinginfo.fBeamname' rightIcon='' mode='text' />

					<cLabel title='工程部位' must="no" v-model='totalData.yjQmpMsGroutinginfo.fEngineeringname'
						:disabled="true" :dataText='totalData.yjQmpMsGroutinginfo.fEngineeringname' rightIcon=''
						mode='textarea' />

					<cLabel title='设备名称' must="no" v-model='totalData.yjQmpMsGroutinginfo.fMachinename'
						:disabled="true" :dataText='totalData.yjQmpMsGroutinginfo.fMachinename' rightIcon=''
						mode='text' />
					<cLabel title='孔道数' must="no" v-model='totalData.yjQmpMsGroutinginfo.fDuctcount' :disabled="true"
						:dataText='totalData.yjQmpMsGroutinginfo.fDuctcount' rightIcon='' mode='text' />
					<cLabel title='压浆方向' must="no" v-model='totalData.yjQmpMsGroutinginfo.fGroutingdirection'
						:disabled="true" :dataText='totalData.yjQmpMsGroutinginfo.fGroutingdirection' rightIcon=''
						mode='text' />
					<cLabel title='压浆步骤' must="no" v-model='totalData.yjQmpMsGroutinginfo.fGrouting' :disabled="true"
						:dataText='totalData.yjQmpMsGroutinginfo.fGrouting' rightIcon='' mode='text' />
					<cLabel title='压浆日期' must="no" v-model='totalData.yjQmpMsGroutinginfo.fGroutingdates'
						:disabled="true" :dataText='totalData.yjQmpMsGroutinginfo.fGroutingdates' rightIcon=''
						mode='text' />
					
					<cLabel title='预警级别' must="no" v-model='totalData.yjQmpMsGroutinginfo.fWarninglevel'
						:disabled="true" :dataText='totalData.yjQmpMsGroutinginfo.fWarninglevel' rightIcon=''
						mode='text' />
					<cLabel title='上传时间' must="no" v-model='totalData.yjQmpMsGroutinginfo.fCreatedates' :disabled="true"
						:dataText='totalData.yjQmpMsGroutinginfo.fCreatedates' rightIcon='' mode='text' />



				</form>

			</view>

			<view class="formPage" v-if="Inv==0">
				<form>
					<view style="width: 100%;">
						<view class="formPage-titel">
							<view>
								闭合申请单
							</view>
						</view>
						<cLabel title='预警内容' must="no" v-model='totalData.closeinfo.fWarningcontent'
							:disabled="readonly1" :dataText='totalData.closeinfo.fWarningcontent' rightIcon=''
							mode='textarea' />
						<cLabel must="no" title='问题原因' v-model='totalData.closeinfo.fReason' :disabled="readonly0"
							:dataText='totalData.closeinfo.fReason' rightIcon='' mode='text' />
						<cLabel must="no" title='处理方式' v-model='totalData.closeinfo.fHandleway' :disabled="readonly0"
							:dataText='totalData.closeinfo.fHandleway' rightIcon='' mode='text' />

						<cLabel must="no"  :disabled="readonly0" title='处置结果' v-model='totalData.closeinfo.fHandleresult'
							:dataText='totalData.closeinfo.fHandleresult' mode='text' rightIcon='' />
					
						<cLabel must="no" title='处理日期' over="calc(5em + 15px)" :dataText='totalData.closeinfo.fHandledates'
							 :disabled="readonly0" v-model='totalData.closeinfo.fHandledates' rightIcon='' mode='text' />
						<cLabel must="no" title='处理人' v-model='totalData.closeinfo.fHandleusername' 
							:disabled="readonly0" :dataText='totalData.closeinfo.fHandleusername' rightIcon=''
							mode='text' />
						<view v-if="required0 == true" class="cu-bar bg-white" style="border-top:1px #ccc solid ;">
							<view class="action">
								<image :src="unIcon" mode=""
									style="width: 30upx;height: 30upx;vertical-align: middle;">
									附件
							</view>
							<view class="action">
								<!-- fPhotofilelist -->
								{{fPhotofilelist.length}}/{{count}}
							</view>
						</view>

						<view v-if="required0 == true" class="cu-form-group">
							<view class="grid col-4 grid-square flex-sub">
								<view class="bg-img" v-for="(item,index) in fPhotofilelist" :key="index"
									:data-url="item.url" @tap="pdfPage(item.name, item.url)">
									<image src="@/static/pdf.png" mode="aspectFill"></image>
								
									<view class="fileText"> {{item.name}}</view>
								</view>

							</view>
						</view>


					</view>
					
				</form>
			</view>
			<view class="formPage" v-if="Inv==1">
				
				<form>

					<view v-if="
			      companyNum == 1 ||
			      companyNum == 2 ||
			      companyNum == 3 ||
			      companyNum == 4 ||
			      companyNum == 5
			    ">
						<view class="formPage-titel">
							<view>
								一级审核
							</view>

						</view>
						<cLabel must="no" title='处置结果' v-model='totalData.closeinfo.fFirstcheckresult'
						:disabled="true"	:dataText='totalData.closeinfo.fFirstcheckresult'  mode='text' rightIcon=''
							 />
						<cLabel must="no" title='处理日期' over="calc(5em + 15px)" :dataText='totalData.closeinfo.fFirstcheckdates'
							 :disabled="true" v-model='totalData.closeinfo.fFirstcheckdates' mode='text' rightIcon=''
							:flagNum="flagNum" />
						<cLabel must="no" title='处理人' v-model='totalData.closeinfo.fFirstcheckusername' 
							:disabled="true" :dataText='totalData.closeinfo.fFirstcheckusername' rightIcon=''
							mode='text' />
						<cLabel must="no" title='处理意见' v-model='totalData.closeinfo.fFirstcheckopinion' :disabled="true"
							:dataText='totalData.closeinfo.fFirstcheckopinion' rightIcon='' mode='textarea' />
					</view>

				</form>
			</view>
			<view class="formPage" v-if="Inv==2">
				<form>


					<view v-if="
							  
							  companyNum == 2 ||
							  companyNum == 3 ||
							  companyNum == 4 ||
							  companyNum == 5
							">
						<view class="formPage-titel">
							<view>
								二级审核
							</view>

						</view>
						<cLabel must="no" :disabled="readonly3" title='处置结果' v-model='totalData.closeinfo.fSecondcheckresult'
							:dataText='totalData.closeinfo.fSecondcheckresult'  mode='text' rightIcon='' 
							 />
						<cLabel must="no" :disabled="readonly3" title='处理日期' 
							:dataText='totalData.closeinfo.fFirstcheckdates'  rightIcon=''
							v-model='totalData.closeinfo.fFirstcheckdates' mode='text'  rightIcon='' />
						<cLabel must="no" :disabled="readonly3" title='处理人' v-model='totalData.closeinfo.fFirstcheckusername'
							:dataText='totalData.closeinfo.fFirstcheckusername' rightIcon='' mode='text' />
						<cLabel must="no" :disabled="readonly3" title='处理意见' v-model='totalData.closeinfo.fSecondcheckopinion'
							:dataText='totalData.closeinfo.fSecondcheckopinion' rightIcon='' mode='textarea' />
					</view>
					<view class="formPage" v-if="Inv==3">
						<form>

							<view v-if="
							  
							 
							  companyNum == 3 ||
							  companyNum == 4 ||
							  companyNum == 5
							">
								<view class="formPage-titel">
									<view>
										三级审核
									</view>

								</view>
								<cLabel must="no" title='处置结果' v-model='totalData.closeinfo.fThirdcheckresult' 
									:dataText='totalData.closeinfo.fThirdcheckresult'  rightIcon=''
									mode='text'  />
								<cLabel must="no" title='处理日期' over="calc(5em + 15px)"
									:dataText='totalData.closeinfo.fThirdcheckdates'  :disabled="true"
									v-model='totalData.closeinfo.fThirdcheckdates' mode='text' rightIcon=''  />
								<cLabel must="no" title='处理人' v-model='totalData.closeinfo.fThirdcheckusername' 
									:disabled="true" :dataText='totalData.closeinfo.fThirdcheckusername' rightIcon=''
									mode='text' />
								<cLabel must="no" title='处理意见' v-model='totalData.closeinfo.fThirdcheckopinion' :disabled="true"
									:dataText='totalData.closeinfo.fThirdcheckopinion' rightIcon='' mode='textarea' />
							</view>
							
						</form>
					</view>
					
				</form>
			</view>
			<loading :shadeShow="shadeShow" :shadeClick="false" :backgroundColor="backgroundColor" :width="width"
				:height="height" ref="loading" :custom="false" :type="1" @callback="callback()">
			</loading>
			
		</view>

	</view>
</template>


<script src="./index.js">
</script>

<style scoped lang="less">
@import './index.less';
</style>

